#include "BasResLimit.h"

int BasResLimit::_countId = 0;

BasResLimit::BasResLimit(time_t flightDate, string base, string acTypeCrews, double dailyCnt, double dailyCrewCnt)
    : _flightDate(flightDate), _base(base), _acTypeCrews(acTypeCrews), _dailyCnt(dailyCnt),
      _dailyCrewCnt(dailyCrewCnt) {
    _id = _countId++;
    _dualDailyCrewCnt = 0;
    _dualDailyCnt = 0;
}

BasResLimit::~BasResLimit() {}

void BasResLimit::print() {
    cout << "ICPResLimit-> id-" << _id << " flightDate-" << getTimeStr(_flightDate) << " base-" << _base
         << " acTypeCrews-" << _acTypeCrews << " dailyCrewCnt-" << _dailyCrewCnt << " dailyCnt-" << _dailyCnt << endl;
}
